const source = `
<div>aaa</div>
console.log(1);
function func(){
    console.info(2)
}
export default class Clazz{
    say(){
        console.debug(3)
    }
    render(){
        return <div>
            {
                console.error(4)
            }
        </div>
    }
}
`

var marked = require('marked');
var highlight = require('highlight.js');
const res = marked.setOptions({
    renderer: new marked.Renderer(),
    gfm: true,
    tables: true,
    breaks: true,
    pedantic: false,
    sanitize: false,
    smartLists: true,
    smartypants: false,
    highlight: function (code) {
        return highlight.highlightAuto(code).value;
    }
})
let html=marked(source)
console.log(`${html}`);





